const express = require('express');
const userItem = require('../../app/controllers/userinfo.server.controller.js');

module.exports = (app) => {
    const router = express.Router();
    router.route('/getByUserId/:userInfoId')
    .get(userItem.getByUserId);

    router.route('/add')
    .post(userItem.add);

    app.use('/user', router);
};